package com.zxc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zxc.dao.OrdersLineMapper;
import com.zxc.entity.OrdersLine;
import com.zxc.service.OrdersLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class OrdersLineServiceImpl implements OrdersLineService {

    @Autowired
    private OrdersLineMapper ordersLineMapper;

    @Override
    public OrdersLine selectOrdersLinesByOrderId(Long odrId) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("odd_order_id",odrId);
        OrdersLine ordersLine = ordersLineMapper.selectOne(queryWrapper);
        return ordersLine;
    }
}
